package com.friend.entity.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author friend
 * @since 2020-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@RequiredArgsConstructor(staticName = "of")
@TableName("t_assist_record")
@ApiModel(value="AssistRecord对象", description="")
public class AssistRecord extends Model<AssistRecord> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "点赞记录主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "道友记主键")
    @TableField("note_id")
    private Integer noteId;

    @ApiModelProperty(value = "点赞人主键")
    @TableField("mem_id")
    private Integer memId;

    @ApiModelProperty(value = "点赞时间")
    @TableField("assist_time")
    private LocalDateTime assistTime;

    @ApiModelProperty(value = "删除标识")
    @TableField("del_flag")
    private Integer delFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
